<?php
namespace app\admin\validate;
use think\Validate;

class SiteCate extends Validate
{
    protected $rule = [
        'name'         => 'require|unique:site_category',
    ];

    protected $message = [
        'name.require'  => '名称不能为空',
        'name.unique' => '分类名称已存在',
    ];
}